package com.leyou.common.enums;

/**
 * @program: leyou
 * @description: 异常枚举类
 * @author: NieMiao
 * @create: 2018-11-02 14:46
 **/
public enum ExceptionEnum {
    PRICE_CANNOT_BE_NULL(400,"价格不能为空"),
    CATEGORY_IS_NOT_FOUND(404,"商品类目列表没有查到")
    ;
    private Integer status;
    private String msg;

    ExceptionEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
